package remote
{
	
	import mx.controls.Alert;
	import mx.rpc.AsyncResponder;
	import mx.rpc.AsyncToken;

	public class AsyncResponder extends AbstractResponder
	{
		private var token:AsyncToken;
		public function AsyncResponder(token:AsyncToken,defaultFaultFaultListener:Function=null)
		{
			super(defaultFaultFaultListener);
			this.token = token;
			token.addResponder(new mx.rpc.AsyncResponder(resultHandler,faultHandler));
		}
		private function resultHandler(data:Object,token:Object = null):void{
			Alert.show("data");
			super.notifyResultListeners(data);
		}
		private function faultHandler(info:Object,token:Object = null):void{
			super.notifyFaultListener(info);
		}
	}
}